﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using VirtualKeyboard.Service;
using VirtualKeyboard.Service.TcpServices;

namespace VirtualKeyboard.UI
{
    public class Startup
    {
        private readonly ServiceListener serviceListener;
        private readonly KeyMethodHandler keyMethodVisitor;

        public Startup()
        {
            serviceListener = new ServiceListener(new KeyMethodHandler());
        }

        public void Srart()
        {
            serviceListener.Init();
            serviceListener.Start(8012);
        }

        public void Stop()
        {
            serviceListener.Stop();
        }
    }
}
